package com.chao.base.obj;

/**
 * @author : Rookie
 * @description :
 * @date : 2023/9/23
 */
public class YyTest {

    public static void main(String[] args) {
        Person person = new Person("fwc");
        update(person);
        System.out.println("=====" + person);
        new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
        }).start();
    }

    private static void update(Person person) {
        System.out.println(person);
        person = new Person("111");
        System.out.println(person);
    }
}
